#!/bin/bash
var=""
echo ${1:-123}
echo ${var:=345}
echo $var
${1:?没参数}
echo ${1:+没参数}
